import http from '../index'

//vin
export const findByvin = (params) => http({
    url: '/api/carmodels/find/'+params,
    method: 'get'
})

//根据销售车型ID获取车辆结构
export const findBycar = (data) => http({
    url: '/api/cargroups/findByAmVehicleId',
    method: 'post',
    data
})

//根据vin和销售车型ID和车辆结构ID获取配件信息
export const carparts = (data) => http({
    url: '/api/carparts/findByVinAndAmVehicleIdAndPartGroupId',
    method: 'post',
    data
})
//根据原厂零件ID获取零件价格
export const price = (params) => http({
    url: '/api/carprices/findByOeId/'+params,
    method: 'get'
})

//根据零件名称和零件号模糊查询
export const getlpj = (data) => http({
    url: '/api/cargroups/findPartNameByInput',
    method: 'post',
    data
})
//添加
export const addlpj = (data) => http({
    url: '/api/carssqd/addCarssqd',
    method: 'post',
    data
})
//查询
export const getPrice = (data) => http({
    url: '/api/carssqd/findCarssqd',
    method: 'post',
    data
})
//删除
export const dellpj = (params) => http({
    url: '/api/carssqd/removeCarssqd?'+params,
    method: 'get'
    // data
})